<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/11/28 0028
  Time: 下午 4:16
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" session="false" %>
<html>
<head>
    <title>Spittr</title>
    <link rel="stylesheet" type="text/css" href='<c:url value="/resources/style.css"/>'>
</head>
<body>
    <h1>Register</h1>

    <sf:form method="POST" commandName="spitter">
        <sf:label path="firstName" cssErrorClass="error"> First Name</sf:label>:
                    <sf:input path="firstName" cssErrorClass="error"/><br/>
                    <sf:errors path="firstName" cssClass="error"/><br/>
        <sf:label path="lastName" cssErrorClass="error"> Last Name</sf:label>:
                    <sf:input path="lastName" cssErrorClass="error"/><br/>
                    <sf:errors path="lastName" cssClass="error"/><br/>
        <sf:label path="email" cssErrorClass="error"> Email</sf:label>:
                    <sf:input path="email" cssErrorClass="error"/><br/>
                    <sf:errors path="email" cssClass="error"/><br/>
        <sf:label path="username" cssErrorClass="error"> UserName</sf:label>:
                    <sf:input path="username" cssErrorClass="error"/><br/>
                    <sf:errors path="username" cssClass="error"/><br/>
        <sf:label path="password" cssErrorClass="error"> Password</sf:label>:
                    <sf:password path="password" cssErrorClass="error"/><br/>
                    <sf:errors path="password" cssClass="error"/><br/>
        <input type="submit" value="Register"/>
    </sf:form>
</body>
</html>
